#define _CRT_SECURE_NO_WARNINGS
#include"SeqList.h"

int main()
{
	SL seqlist = { 0 };
	SL* ps = &seqlist;
	SLInit(ps);
	//SLPushBack(ps, 1);
	//SLPushBack(ps, 2);
	//SLPushBack(ps, 3);
	//SLPushBack(ps, 4);
	//SLPrint(ps);
	//SLPopBack(ps);
	//SLPrint(ps);
	//SLPopBack(ps);
	//SLPrint(ps);
	//SLPopBack(ps);
	//SLPrint(ps);
	//SLPopBack(ps);
	//SLPrint(ps);

	SLPushFront(ps, 1);
	SLPushFront(ps, 2);
	SLPushFront(ps, 3);
	SLPushFront(ps, 4);
	SLPrint(ps);
	SLInsert2(ps, 1, 5);
	SLPrint(ps);
	SLInsert2(ps, 3, 5);
	SLPrint(ps);
	SLInsert2(ps, 2, 5);
	SLPrint(ps);
	SLErase(ps, 2);
	SLPrint(ps);


	//SLPopFront(ps);
	//SLPrint(ps);
	//SLPopFront(ps);
	//SLPrint(ps);
	//SLPopFront(ps);
	//SLPrint(ps);
	//SLPopFront(ps);

	SLDestroy(ps);
	return 0;
}